package com.org.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.org.model.Administrator;
import com.org.model.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author test
 * @since 2021-06-05
 */
public interface UserMapper extends BaseMapper<User> {

    //查询全部记录
    public List<User> selectAll();
    public IPage<User> selectAllPage(Integer current,Integer size);

    //根据id查询
    public String getFromId(Integer u_id);

    //
    public User getByAccount(String username);

    public User getByName(String name);

    //
     public boolean deleteById(Integer id);
}
